<template>
  <div id="app">
    <h2>测试题</h2>
    <subject  :num="item" v-for="(item,index) in list" :key="index"></subject>
    <div>
      <flag :list="list"></flag>
    </div>
  </div>
</template>

<script>

import subject from "./components/8-Subject.vue"
import flag from "./components/8-Flag.vue"

export default {
  components: {
    subject,
    flag
  },
  data() {
    return {
      list:[
        {
          firstNum: 1,
          lastNum: 2,
          isTrue:'undo'
        },
        {
          firstNum: 2,
          lastNum: 4,
          isTrue:'undo'
        },
        {
          firstNum: 5,
          lastNum: 7,
          isTrue:'undo'
        },
        {
          firstNum: 9,
          lastNum: 2,
          isTrue:'undo'
        },
        {
          firstNum: 1,
          lastNum: 9,
          isTrue:'undo'
        }
      ]
    }
  },
 
};
</script>

<style>
body {
  background-color: #eee;
}

#app {
  background-color: #fff;
  width: 500px;
  margin: 50px auto;
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.5);
  padding: 2em;
}
</style>